package com.freewater.springboot.demo.validation.baseuse;

import lombok.Data;

import jakarta.validation.constraints.NotBlank;

@Data
public class Subject {

    @NotBlank(message = "科目代号不能为空")
    private String code;

    @NotBlank(message = "科目名不能为空")
    private String name;
}
